<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script type="text/javascript">
			function People() {}
			People.prototype.say = function() {
				alert("hello");
			}
			function Student() {}
			Student.prototye = new People(); //原型链继承
			Student.prototype.say = function() {
				alert("stu-hello");
				People.prototype.say.call=
			}
			function Worker() {}
			Worker.prototype=new People();
			var stu = new Student();
			var work = new Worker();
			stu.say(); //调用子类Student的say方法,输出stu-hello
			work.say();
		</script>
	</body>

</html>>